﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Database.cs" company="Marcin Jastrzebski">
//   Copyright (c) Marcin Jastrzebski (marcin@marcinj.net)
// </copyright>
// <summary>
//   Represents the database on the databases page.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace mPassRT.Services
{
    using Windows.Storage;

    /// <summary>Represents the database on the databases page.</summary>
    public class Database
    {
        #region Constructors and Destructors

        /// <summary>Initializes a new instance of the <see cref="Database"/> class. Prevents a default instance of the <see cref="Database"/> class from being created.</summary>
        /// <param name="token">The token.</param>
        /// <param name="file">The file.</param>
        public Database(string token, StorageFile file)
        {
            this.Token = token;
            this.File = file;
        }

        #endregion

        #region Public Properties

        /// <summary>Gets the subtitle.</summary>
        public StorageFile File { get; private set; }

        /// <summary>Gets the title.</summary>
        public string Name
        {
            get
            {
                return this.File.Name;
            }
        }

        /// <summary>Gets the token.</summary>
        public string Token { get; private set; }

        #endregion
    }
}